# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import datetime


class Migration(migrations.Migration):

    dependencies = [
        ('wfs', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Approver',
            fields=[
                ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=50)),
                ('approver_record', models.CharField(max_length=50)),
                ('time', models.FloatField()),
            ],
            options={
                'db_table': 'approver_record_view',
            },
        ),
        migrations.CreateModel(
            name='ByFromApprover2',
            fields=[
                ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
                ('typeid', models.IntegerField()),
                ('typename', models.CharField(max_length=50)),
                ('name', models.CharField(max_length=50)),
                ('approver_record', models.CharField(max_length=20)),
                ('time', models.FloatField()),
                ('endtime', models.DateTimeField()),
                ('starttime', models.DateTimeField()),
            ],
            options={
                'db_table': 'by_type_approver_aaaaaa_view',
            },
        ),
        migrations.CreateModel(
            name='TbWorkflowRole2',
            fields=[
                ('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
                ('username', models.CharField(blank=True, max_length=50, null=True)),
            ],
            options={
                'db_table': 'tb_workflow_role2',
            },
        ),
        migrations.RemoveField(
            model_name='wfsorgrole',
            name='org',
        ),
        migrations.AddField(
            model_name='bynode',
            name='name',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 38, 115833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='applicant',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 43, 628833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='name',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 45, 28833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='num',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='status',
            field=models.IntegerField(default=datetime.datetime(2017, 12, 30, 14, 3, 46, 293833)),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='title',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 47, 439833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='type',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 48, 602833), max_length=20),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='url',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 49, 767833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='reminderlog',
            name='user',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 50, 881833), max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='wfsorgrole',
            name='user',
            field=models.ForeignKey(to='wfs.User', default=datetime.datetime(2017, 12, 30, 14, 3, 52, 47833)),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='workflow',
            name='flowchart',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 53, 255833), max_length=20),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='workflow',
            name='update_type',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 55, 868833), max_length=10),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='workflow',
            name='workflow_type',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 58, 73833), max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='workflowapprovalrecord',
            name='pdf',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 3, 59, 942833), max_length=200),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='workflowrole',
            name='type',
            field=models.CharField(default=datetime.datetime(2017, 12, 30, 14, 4, 1, 718833), max_length=20),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='nodecase',
            name='group',
            field=models.ForeignKey(to='wfs.NodeGroup', related_name='group'),
        ),
        migrations.AlterField(
            model_name='wfsorgrole',
            name='rectime',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AlterField(
            model_name='wfsorgrole',
            name='role',
            field=models.ForeignKey(to='wfs.WorkflowRole', related_name='user2'),
        ),
        migrations.AlterField(
            model_name='workflowroleuser',
            name='workflow_role',
            field=models.ForeignKey(to='wfs.WorkflowRole', related_name='user_2'),
        ),
    ]
